function test_depthwise_conv()
    % 创建模型实例
    model = model_cifar10();
    
    % 创建测试输入
    input = int8(randi([-128, 127], [1, 32, 32, 3]));
    
    % 测试第一层深度卷积
    output = model.depthwise_conv2d(input, 1);
    
    % 显示输出形状和范围
    disp('Output shape:');
    disp(size(output));
    disp('Output range:');
    disp([min(output(:)), max(output(:))]);
    
    % 验证输出维度
    assert(isequal(size(output), [1, 32, 32, 3]), 'Incorrect output dimensions');
    assert(isa(output, 'int8'), 'Output should be int8');
end 